package com.diandian.pos.util;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * 线程类
 *
 * @author wupengfei
 */
public abstract class ThreadUtils {

    private static ExecutorService executor = Executors.newCachedThreadPool();

    /**
     * 调用线程类
     *
     * @param run
     */
    public static void invoke(Runnable run) {
        if (run != null) {
            executor.execute(run);
        }
    }
}


